//
//  PlayMusicTools.h
//  时光
//
//  Created by dllo on 16/4/7.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>

@protocol PlayMusicDelegate <NSObject>

- (void)playMusicCurrenTime:(NSString *)currenTime totalTime:(NSString *)totalTime Progress:(CGFloat)progress;

- (void)playNextMusic;

@end

@interface PlayMusicTools : NSObject

@property(nonatomic, strong)AVPlayer *player;
@property (nonatomic, assign) id<PlayMusicDelegate> delegate;

+(PlayMusicTools *)shareMusic;

- (void)preparePlayMusicWithUrl:(NSString *)url;

- (void)pause;

- (void)play;

- (BOOL)isPlaying;





@end
